package com.bite.system.DTO;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysUserDTO {

    @Schema(description = "用户账号")
    @NotBlank(message = "用户账号不能为空")
    private String userAccount;

    @Size(min = 4,max = 10, message = "用户密码不能少于4个字符，不能超过10个字符")
    @Schema(description = "用户密码")
    private String password;
}
